package com.example.shixunandjavagotoyangchen.BoosYang.Day001.Day00105;

import com.blankj.utilcode.util.ToastUtils;
import com.example.modelviewpresenter.Presenter.BasterPresenter;
import com.example.shixunandjavagotoyangchen.BoosYang.Day001.Day00104.PizzaDay00104Bean;
import com.example.shixunandjavagotoyangchen.BoosYang.Day001.Day00104.PizzaDay00104Callback;

import java.util.List;

/**
 * 作者:二徒
 * 时间：2021/10/28- 11:45
 * 功能实现：
 */
public class ClassroomDay00105Presenter  extends BasterPresenter<ClassroomDay00105Contion.vier,ClassroomDay00105Contion.moder> {

    public ClassroomDay00105Presenter(ClassroomDay00105Contion.vier iew, ClassroomDay00105Contion.moder asd) {
        super(iew, asd);
    }

    public void classroom(String name){
        asd.getmoder(name, new ClassroomDay00105Callback() {
            @Override
            public void suees(List<ClassroomDay00105Bean.DataBean> dataBeans) {
                iew.getvier(dataBeans);
            }

            @Override
            public void filai(String uet) {
                ToastUtils.showShort("失败"+uet);
            }
        });
    }

}
